package com.spring.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @auther 尚智江
 * @Date 2022/10/31 0:18
 */
@Controller
public class GoodsController {
@RequestMapping("/addGoods")
    public String add(String goodsName,double goodsPrice,int goodsNum){
    double total = goodsPrice*goodsNum;
    System.out.println(total);
    return "success";
}
}
